module dgl.graphics.VertexData;

import dgl.Vector2;
import dgl.Vector3;
import dgl.Vector4;

struct VertexData
{
	public uint index;
	
	public Vector3 position;
	
	public Vector4 color;
	
	public Vector3 normal;
	
	public Vector2 texcoord;
	
	public Vector3 tangent;
	
	public Vector3 binormal;
	
	public Vector4 boneIndices;
	
	public Vector4 boneWeight;
	
	public static VertexData opCall()
	{
		VertexData ret;
		ret.index = 0;
		ret.position = Vector3.zero;
		ret.color = Vector4.one;
		ret.normal = Vector3.zero;
		ret.texcoord = Vector2.zero;
		ret.tangent = Vector3.zero;
		ret.binormal = Vector3.zero;
		ret.boneIndices = Vector4.zero;
		ret.boneWeight = Vector4.zero;
		return ret;
	}
}